import { getFormatterPrice } from '@const/filter'
// 验票页数据
export const ticektcheckList = [
  [
    { prop: 'invoiceName', span: 6, placeholder: '请输入', label: '发票抬头：', type: 'input' },
    { prop: 'invoiceCode', span: 6, placeholder: '请输入', label: '发票代码：', type: 'input' },
    { prop: 'invoiceNo', span: 6, placeholder: '请输入', label: '发票编号：', type: 'input' },
    { prop: 'invoiceAmountTax', span: 6, placeholder: '请输入', label: '发票金额：', type: 'input', formatter: row => getFormatterPrice(row.invoiceMoney) }
  ],
  [
    { prop: 'invoiceDate', span: 6, placeholder: '请输入', label: '开票日期：', type: 'date' },
    { prop: 'drawer', span: 6, placeholder: '请输入', label: '开票人：', type: 'input' },
    { prop: 'invoiceComp', span: 6, placeholder: '请输入', label: '开票企业：', type: 'input' },
    { prop: 'unifiedSocialCode', span: 6, placeholder: '请输入', label: '统一社会信用代码：', type: 'input' }
  ],
  [
    { prop: 'openBank ', span: 6, placeholder: '请输入', label: '开户行：', type: 'date' },
    { prop: 'bankAccount', span: 6, placeholder: '请输入', label: '账号：', type: 'input' }
  ]
]
// 验票页列表数据
export const ticketcheckcolumsData = [
  { prop: 'hosProdCode', label: '产品编码', 'min-width': 150, 'show-overflow-tooltip': true },
  { prop: 'hosProdName', label: '产品名称', width: 150, 'show-overflow-tooltip': true },
  { prop: 'hosProdSpec', label: '规格', width: 120, 'show-overflow-tooltip': true },
  { prop: 'hosProdModel', label: '型号', width: 120, 'show-overflow-tooltip': true },
  { prop: 'hosMinUnit', label: '最小单位', width: 90 },
  { prop: 'prodPrice', label: '单价(元)', width: 100, formatter: row => getFormatterPrice(row.prodPrice) },
  { prop: 'udi', label: 'UDI', 'min-width': 170 },
  { prop: 'productBatch', label: '批号', width: 120, 'show-overflow-tooltip': true },
  { prop: 'num', label: '数量', width: 60 },
  { prop: 'hosRegistNo', label: '注册证号', 'min-width': 170, 'show-overflow-tooltip': true },
  { prop: 'hosProdManufacturer', label: '生产厂家', width: 170, 'show-overflow-tooltip': true },
  { prop: 'detailAmount', label: '小计金额(元)', width: 120, formatter: row => getFormatterPrice(row.detailAmount) },
  { prop: 'taxRate', label: '税率', width: 80, formatter: row => `${row.taxRate === null ? '' : row.taxRate * 100 + '%'}` },
  { prop: 'tax', label: '税额', width: 80 },
  { prop: 'supplierName', label: '供应商', width: 170, 'show-overflow-tooltip': true }
]
